#include <iostream>
#include <vector>
#include <string>
#include <QApplication>
#include <WidgetsManager.h>
#include <BuildManager.h>
#include <math.h>
#include <DefineCommon.h>

// #include <DialogDataMonitor.h>

int main(int argc, char *argv[])//
{
	 
	QApplication app(argc, argv);

	/*QPixmap pixmap("test/splash.png");
	QSplashScreen splash(pixmap);
	splash.show();

	QTime t;
	t.start();
	while (t.elapsed()<100)
		QCoreApplication::processEvents();*/


	BuildManager::instance()->buildUi();
	WidgetsManager::instance()->getWidgetFromMap("WidgetMainWindow")->showMaximized();

    // ELOG_DEBUG("ExeUiOsg: main");
    // DialogDataMonitor* dialog = new DialogDataMonitor;
    // dialog->show();

	//WidgetsManager::instance()->showMaximized();
	//splash.finish(WidgetsManager::instance());
	
	return app.exec();
    // testWrapCodeGenerator();
}
